-- GENERATED SPELL FOR [Garr Salthoof] --


function spell0_2549(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2549', 2312, 1)
end

function spell1_2549(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(8260,pUnit)
pUnit:RegisterEvent('Sorts_2549', 4295, 1)
end

function Sorts_2549(pUnit, Event)
local choix_sorts_2549 = math.random(0, 1)
if choix_sorts_2549 == 0 then
pUnit:RegisterEvent('spell0_2549', 1, 1)
end
if choix_sorts_2549 == 1 then
pUnit:RegisterEvent('spell1_2549', 1, 1)
end
end

function mob2549_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2549', math.random(1500, 3000), 1)
end

function mob2549_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2549_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2549_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2549, 1, 'mob2549_Action')
RegisterUnitEvent(2549, 2, 'mob2549_Leave')
RegisterUnitEvent(2549, 3, 'mob2549_Kill')
RegisterUnitEvent(2549, 4, 'mob2549_Die')
